//
//  goodsReceiptCell.m
//  zhangGuangTianXia
//
//  Created by tangtangchitangtang on 2017/11/8.
//  Copyright © 2017年 tangtangchitangtang. All rights reserved.
//

#import "goodsReceiptCell.h"

@implementation goodsReceiptCell
-(void)creatView{
    self.backgroundColor=_LightGrey;
    
    
    UIView *beijingView=[UIView new];
    [self addSubview:beijingView];
    [beijingView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.mas_equalTo(0);
        make.bottom.mas_equalTo(-10);
    }];
    beijingView.backgroundColor=[UIColor whiteColor];
    
    UIView *nameView=[UIView new];
    [beijingView addSubview:nameView];
    [nameView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.mas_equalTo(0);
        make.height.mas_equalTo(55);
    }];
    
    UILabel *nameLabel=[UILabel new];
    [nameView addSubview:nameLabel];
    [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.mas_equalTo(0);
    }];
    nameLabel.text=@"未知火星用户";
    nameLabel.font=[UIFont fontWithName:@"bold" size:16];
    nameLabel.textColor=ColorWithRGB(49, 49, 49);

    UILabel *phoneLAbel=[UILabel new];
    [nameView addSubview:phoneLAbel];
    [phoneLAbel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-15);
        make.centerY.mas_equalTo(0);
    }];
    phoneLAbel.textColor=ColorWithRGB(150, 150, 150);
    phoneLAbel.font=[UIFont systemFontOfSize:18];
    phoneLAbel.text=@"18183128005";
    
    UILabel *addressLAbel=[UILabel new];
    [beijingView addSubview:addressLAbel];
    [addressLAbel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
        make.top.mas_equalTo(nameView.mas_bottom);
    }];
    [addressLAbel layoutIfNeeded];
    addressLAbel.text=@"重庆市渝中区南平就系国际123号";
    addressLAbel.textColor=ColorWithRGB(150, 150, 150);
    addressLAbel.font=[UIFont systemFontOfSize:18];

    UIView *xianView=[UIView new];
    [beijingView addSubview:xianView];
    [xianView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(0);
        make.height.mas_equalTo(1);
        make.top.mas_equalTo(addressLAbel.mas_bottom).mas_equalTo(20);
    }];
    xianView.backgroundColor=_LightGrey;
    
    
    UIView *bottomView=[UIView new];
    [beijingView addSubview:bottomView];
    [bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.bottom.right.mas_equalTo(0);
        make.top.mas_equalTo(xianView.mas_bottom);
    }];
    
    _selctImage=[UIImageView new];
    [bottomView addSubview:_selctImage];
    [_selctImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.height.width.mas_equalTo(30);
        make.centerY.mas_equalTo(0);
    }];
    _selctImage.backgroundColor=[UIColor grayColor];
    
    _selectLabel=[UILabel new];
    [bottomView addSubview:_selectLabel];
    [_selectLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(_selctImage.mas_right).mas_equalTo(7);
        make.centerY.mas_equalTo(0);
    }];
    _selectLabel.text=@"默认地址";
    _selectLabel.textColor=ColorWithRGB(200, 200, 200);
    _selectLabel.font=[UIFont systemFontOfSize:14];
    
    
    UIView *shanChuView=[UIView new];
    [bottomView addSubview:shanChuView];
    [shanChuView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-15);
        make.bottom.top.mas_equalTo(0);
        make.width.mas_equalTo(75);
    }];
    
    UILabel *shanChuLabel=[UILabel new];
    [shanChuView addSubview:shanChuLabel];
    [shanChuLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(0);
        make.centerY.mas_equalTo(0);
    }];
    shanChuLabel.text=@"删除";
    shanChuLabel.textColor=ColorWithRGB(200, 200, 200);
    shanChuLabel.font=[UIFont systemFontOfSize:15];
    
    UIImageView *imageView=[UIImageView new];
    [shanChuView addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.width.height.mas_equalTo(35);
        make.centerY.mas_equalTo(0);
    }];
    imageView.backgroundColor=_tianLanColor;
    
    
    UIView *bianJiView=[UIView new];
    [bottomView addSubview:bianJiView];
    [bianJiView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(shanChuView.mas_left).mas_equalTo(-10);
        make.bottom.top.mas_equalTo(0);
        make.width.mas_equalTo(75);
    }];
    
    UILabel *bianJiLabel=[UILabel new];
    [bianJiView addSubview:bianJiLabel];
    [bianJiLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(0);
        make.centerY.mas_equalTo(0);
    }];
    bianJiLabel.text=@"编辑";
    bianJiLabel.textColor=ColorWithRGB(200, 200, 200);
    bianJiLabel.font=[UIFont systemFontOfSize:15];
    
    UIImageView *imageView2=[UIImageView new];
    [bianJiView addSubview:imageView2];
    [imageView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(0);
        make.width.height.mas_equalTo(35);
        make.centerY.mas_equalTo(0);
    }];
    imageView2.backgroundColor=_tianLanColor;


    

}

@end
